<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>订单列表</title>
	<hdjs />
	<js file='__PUBLIC__/js/mod.base.js,__PUBLIC__/js/mod.article.js' />
	<css file='__PUBLIC__/css/mod.base.css,__PUBLIC__/css/mod.article.css' />
</head>
<body>

	<script type="text/javascript" src="http://localhost/hdphp/hdcms/Static/cal/lhgcalendar.min.js"></script>
	<form class="hd-form" method="get">
	
		
		<div class="search">
			添加时间：
			<input id="begin_time" placeholder="开始时间" readonly="readonly" class="hd-w80" type="text" value="{$Think.get.search_begin_time}" name="search_begin_time">
			<script>
				$('#begin_time').calendar({
					format : 'yyyy-MM-dd'
				});
			</script>
			-
			<input id="end_time" placeholder="结束时间" readonly="readonly" class="hd-w80" type="text" value="{$Think.get.search_end_time}" name="search_end_time">
			<script>
				$('#end_time').calendar({
					format : 'yyyy-MM-dd'
				});
			</script>
			
			&nbsp;&nbsp;&nbsp;
			<select name="keytype" class="hd-w100">
				
				<option value="sn" <if condition ='$_GET["keytype"] eq "sn"'> selected='selected'</if>>订单号</option>
				<option value="username" <if condition ='$_GET["keytype"] eq "username"'> selected='selected'</if>>用户名</option>
			</select>
			&nbsp;&nbsp;&nbsp;
					关键字：
			<input class="hd-w200" type="text" placeholder="请输入关键字..." value="{$Think.get.keyword}" name="keyword">
			<button class="hd-btn hd-btn-xm" type="submit">搜索</button>

			<input type="hidden" name="cid" value="{$Think.get.cid}"/>
		    <input type="hidden" name="verifystate" value="{$Think.get.verifystate}"/>
		</div>
	</form>
	
	
	<form action = '{:U("OrderLists/beachdelete")}' method='post' name="operationForm">

		<table class="hd-table hd-table-list hd-form">
			<thead>
				<tr>
					<td class="hd-w30">
						<input type="checkbox" id="selectAllContent"/>
					</td>
					
					<td class="hd-w30">id</td>
					<td>订单号</td>
					<td class="hd-w100">状态</td>
					<td class="hd-w100">帐号</td>
					<td class="hd-w80">添加时间</td>
	
					<td class="hd-w120">操作</td>
				</tr>
			</thead>
			<if condition = '$data'>
				<foreach name='data' item='v'>
					<tr>
						<td class="hd-w30">
							<input type="checkbox"  name="order_id[{$v.order_id}]" value="{$v.order_id}" />
						</td>

						<td class="hd-w30">{$v.order_id}</td>
						<td>{$v.sn} </td>
						<td class="hd-w50">{$v.order_status|get_order_status}</td>
						<td class="hd-w100">{$v.username}</td>
						<td class="hd-w150">{$v.addtime|date='Y-m-d H:i:s',###}</td>
					
						<td class="hd-w120">
							
							<a href="{:U('OrderLists/edit',array('order_id'=>$v['order_id'],'is_deposit'=>$v['is_deposit']))}">编辑</a>
							|
							<a href="javascript:;" onclick="del_modal('{:U('OrderLists/del',array('order_id'=>$v['order_id'],'is_deposit'=>$v['is_deposit']))}')">删除</a>
						</td>
					</tr>
				</foreach>
				<tr>
				<td colspan="10" class='page'>{$page}</td>
				</tr>
			<else />
			<tr>
				<td colspan="10">没有找到符合的记录</td>
			</tr>
			</if>

		</table>
		<div class="hd-page"></div>
		<input type="hidden" name="is_deposit" value="{$Think.get.is_deposit}" />
		<input type="button" class="hd-btn hd-btn-xm select_all"  value="全选" />
		<input type="button" class="hd-btn hd-btn-xm operation"  value="批量删除" name="update_del"/>
	</form>
	
</body>
</html>